#include "Point.h"

#include <iostream>
#include <sstream>

using namespace std;

Point::Point()
{
	x = 0;
	y = 0;
}

Point::Point(const int & x1,const int & y1)
{
	x = x1;
	y = y1;
}

Point Point::operator + (const Point & p) const
{
    return Point(x + p.x, y + p.y);
}

bool Point::operator != (const Point & p)const
{
    if( (x != p.x) || (y != p.y) )
        return true;
    else
        return false;
}

Point::operator string() const
{
	string s = "";

	ostringstream ossX;
	ossX << x;
	ostringstream ossY;
	ossY << y;

	string cx,cy;
	cx = ossX.str();
	cy = ossY.str();
	s += "(" + cx + "," + cy + ")";
	return s;
}
